package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.TcmktTenantBlaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  待审核黑名单
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-04-26 18:36
 **/
@Controller
@RequestMapping("/key/tcmktTenantBla")
public class TcmktTenantBlaController {

    @Autowired
    TcmktTenantBlaService tcmktTenantBlaService;
    /**
    * <p>
    * 待审核黑名单
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getBla")
    public JsonResult getBla(){
        JsonResult result = new JsonResult();
        Map<String,Object> params = new HashMap<>();
        params.put("tcmktTenantBlaCount",tcmktTenantBlaService.getBla());
        return result.put(params);
    }
}
